package com.leyou.privilege.service;

import com.leyou.privilege.dto.ApplicationDTO;

/**
 * Created by IntelliJ IDEA.
 *
 * @author: wangzibeng
 * Date: 2019/5/16 0016
 * Time: 11:58
 */

public interface ApplicationService {
    /**
     * 新增商品微服务
     *
     * @param applicationDTO 应用信息
     */
    void saveApplication(ApplicationDTO applicationDTO);

    /**
     * 查询应用信息
     *
     * @param id     id
     * @param secret 秘钥
     * @return DTO
     */
    ApplicationDTO queryApplicationByIdAndSecret(Long id, String secret);
}
